﻿namespace CSharp
{
     class Edge
    {
        NodeInfo First;
        NodeInfo Second;
        double cost;
        DistanceBet bet = new DistanceBet();

        public Edge(NodeInfo first, NodeInfo second)
        {
            First = first;
            Second = second;
            cost = bet.Calc(first.Latitude(),first.Longtiude(),second.Latitude(),second.Longtiude());
        }
   }
}
